import { BinaryDecision, DecisionMapping } from "framework/FSM/DecisionTree/Decision";
import { DecisionTreeNode } from "framework/FSM/DecisionTree/DecisionTreeNode";
 

export class DecisionCreepAction <T extends IStateArg<Creep>> extends DecisionMapping<T>
{


    protected getkey(arg: T): string|undefined
    {
        if(this.childNodes[arg.entity.ActiveRole()])
        {


            return arg.entity.ActiveRole();
        }
        global.Log.Warning(`DecisionCreepTask: ${arg.entity.ActiveRole()}  找不到爬虫对应的角色行为!`);
        // global.Log.Error(`找不到 对应的行为`)
        return undefined;
    }

}

